#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define IDMAXSIZE 10
#define DATETIME 5

typedef struct//Car
  {
    char ID[IDMAXSIZE];
    char ArriveTime[DATETIME];
    //hh:mm:ss
    char DriveAwayTime[DATETIME];
    int ParkPlace, Location;
    //hh:mm:ss
  }Car;

#define IDMAXSIZE 10
#define DATETIME 5


void Input(Car **CarStack, int MAXSIZE);
Car *CreateNewNode();

int main()
  {
    int MAXSIZE;
    scanf("%d", &MAXSIZE);

    // Car **CarStack = (Car**)malloc(MAXSIZE * sizeof(Car*));
    Car *CarStack[MAXSIZE];
    Input(CarStack, MAXSIZE);

    for ( int i = 0; i < MAXSIZE; i++)
      printf("CarStack[%d] :ParkPlace:%d\n", i, CarStack[i]->ParkPlace);
  }

void Input(Car **CarStack, int MAXSIZE)
  {
    for ( int i = 0; i < MAXSIZE; i++)
        CarStack[i] = CreateNewNode();
  }
Car *CreateNewNode()
  {
    Car *NewCar= (Car*)malloc(sizeof(Car));
    NewCar->ParkPlace = -1;
    return NewCar;
  }
